package com.joysuch.wwyt.openapi.controllers.controllerV1.req;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author: JamesZY
 * @date: 2021/8/24
 * @description：通用数据vo
 */
@Data
public class ApiV1DataReq<T> implements Serializable {

    private static final long serialVersionUID = 7820065218810193373L;

    @Size(min = 1, message = "至少是一个完整数据")
    @NotNull(message = "数据不能是空")
    private @Valid List<T> data;
}
